<?php
/*
 * @ControllerAnnotation(title="校区管理")
 */

namespace app\crm\controller\product;

use app\common\controller\CrmController;
use app\crm\model\BaseCampus;
use think\Controller;

class Demo extends Controller
{
    public function index()
    {
        // $obj = BaseCampus::withTrashed()->find(16);
        // $obj->restore();
        $list = BaseCampus::withTrashed(false)
                ->page(1, 10)
                ->fetchSql(true)
                ->select();
            dump($list);exit;
        //dump($obj);exit;
    }
}